package com.dwxt.community.entity;


import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.annotation.JsonInclude.*;

import javax.validation.constraints.*;
import java.util.*;
@JsonInclude(Include.NON_NULL)
public class ChunkInfo {
    private String id;
    @NotNull(message = "当前块无效！")
    private Integer chunk;
    @NotNull(message = "当前块无效！")
    private Integer chunks;

    private String fileName;

    private Date createTime;

    private String dir;

    private Long offset;

    private String fdfsFullPath;

    private Long size;

    private String name;

    private String fdfsPath;

    private String fdfsGroup;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public Integer getChunk() {
        return chunk;
    }

    public void setChunk(Integer chunk) {
        this.chunk = chunk;
    }

    public Integer getChunks() {
        return chunks;
    }

    public void setChunks(Integer chunks) {
        this.chunks = chunks;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName == null ? null : fileName.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDir() {
        return dir;
    }

    public void setDir(String dir) {
        this.dir = dir == null ? null : dir.trim();
    }

    public Long getOffset() {
        return offset;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public String getFdfsFullPath() {
        return fdfsFullPath;
    }

    public void setFdfsFullPath(String fdfsFullPath) {
        this.fdfsFullPath = fdfsFullPath == null ? null : fdfsFullPath.trim();
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getFdfsPath() {
        return fdfsPath;
    }

    public void setFdfsPath(String fdfsPath) {
        this.fdfsPath = fdfsPath == null ? null : fdfsPath.trim();
    }

    public String getFdfsGroup() {
        return fdfsGroup;
    }

    public void setFdfsGroup(String fdfsGroup) {
        this.fdfsGroup = fdfsGroup == null ? null : fdfsGroup.trim();
    }
}